CC = gcc
AR = ar
CFLAGS = -g -Wall -Wno-pointer-sign -Wno-format 

DIRS = test
TARGETS = all clean install

$(TARGETS): %: $(patsubst %, %.%, $(DIRS))

$(foreach TGT, $(TARGETS), $(patsubst %, %.$(TGT), $(DIRS))):
	$(MAKE) -C $(subst ., , $@) CC=$(CC)
